package com.neusoft.neu.fy25g01.n98.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@TableName("roles") // 表名,解决类名和表名不同的难题
public class Role {
    //    人类手动添加的主键，默认为自增
    @TableId(type = IdType.AUTO) // 声明主键列自增属性
    private Integer rid;
    private String rname;
    private String rinfo;
    //    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date mktime;
    private Integer status;
}
